<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重置密码 - DeepSleep</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <link rel="stylesheet" href="/static/css/forget-password.css">
</head>
<body>
    <div class="forget-container">
        <div class="forget-box">
            <!-- Logo 区域 -->
            <div class="logo">
                <img src="/static/images/deepsleep_logo1.png" alt="Logo">
            </div>

            <h2 class="form-title">重置密码</h2>
            <p class="form-description">请输入您的新密码</p>

            <!-- 修改密码表单 -->
            <form class="forget-form" id="resetForm" method="post" action="/reset_password_process">
                <!-- 错误信息占位区 -->
                <div class="error-message" id="errorMessage"></div>

                <!-- 新密码输入 -->
                <div class="input-group">
                    <input type="password" id="new_password" placeholder="请输入新密码" name="new_password" required>
                    <label for="new_password"><i class="fas fa-lock"></i></label>
                    <i class="fas fa-eye toggle-password"></i>
                </div>

                <!-- 密码强度指示器 -->
                <div class="password-strength">
                    <div class="strength-text">密码强度: <span id="strengthText">弱</span></div>
                    <div class="strength-bar">
                        <div class="strength-progress strength-weak"></div>
                    </div>
                </div>

                <!-- 确认新密码输入 -->
                <div class="input-group">
                    <input type="password" id="confirm_password" placeholder="请确认新密码" name="confirm_password" required>
                    <label for="confirm_password"><i class="fas fa-lock"></i></label>
                </div>

                <!-- 提交按钮 -->
                <button type="submit" class="btn btn-submit">重置密码</button>
            </form>

            <!-- 返回登录链接 -->
            <div class="links">
                <a href="/login" class="form-link">返回登录</a>
            </div>
        </div>
    </div>

    <script src="/static/js/reset-password.js"></script>
</body>
</html>